package com.cloud.api.upms.feign;

import com.cloud.api.upms.model.SysLog;
import com.cloud.common.core.constant.ServiceNameConstants;
import com.cloud.common.core.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "remoteLogService",value = ServiceNameConstants.UMPS)
public interface RemoteLogService {
	/**
	 * 保存日志
	 *
	 * @param sysLog 日志实体
	 * @return
	 */
	@PostMapping("/log/save")
	Result<Boolean> saveLog(@RequestBody SysLog sysLog);
}
